package cn.yuanqiao.archive.collection.appManager.mapper;


import cn.yuanqiao.archive.collection.appManager.domain.YqDataTree;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 资料树Mapper接口
 *
 * @ProjectName: ruoyi-modules-system
 * @Package: cn.yuanqiao.archive.appManager.mapper
 * @ClassName: YqDataTreeMapper
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2023/7/28 11:35
 * @Version: 1.0
 */
public interface YqDataTreeMapper {
    /**
     * 查询资料树
     *
     * @param ID 资料树主键
     * @return 资料树
     */
    public YqDataTree selectYqDataTreeByID(@Param("ID") String ID, @Param("tableName") String tableName);

    /**
     * 查询资料树 根据资料树编码
     *
     * @param dataCode 资料树编码
     * @return 资料树
     */
    public List<YqDataTree> selectYqDataTreeByCode(@Param("dataCode") String dataCode, @Param("tableName") String tableName);

    /**
     * 查询资料树列表
     *
     * @param yqDataTree 资料树
     * @return 资料树集合
     */
    public List<YqDataTree> selectYqDataTreeList(@Param("yqDataTree") YqDataTree yqDataTree, @Param("tableName") String tableName);

    /**
     * 新增资料树
     *
     * @param yqDataTree 资料树
     * @return 结果
     */
    public int insertYqDataTree(@Param("yqDataTree") YqDataTree yqDataTree, @Param("tableName") String tableName);

    /**
     * 修改资料树
     *
     * @param yqDataTree 资料树
     * @return 结果
     */
    public int updateYqDataTree(@Param("yqDataTree") YqDataTree yqDataTree, @Param("tableName") String tableName);

    /**
     * 删除资料树类别
     *
     * @param treeCode 资料树code
     * @return 结果
     */
    public int deleteYqDataTreeBytreeCode(@Param("treeCode") String treeCode, @Param("tableName") String tableName);

    /**
     * 批量删除资料树
     *
     * @param IDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYqDataTreeByIDs(@Param("ID") String[] IDs, @Param("tableName") String tableName);


    /**
     * 删除资料树
     *
     * @param ID 资料树主键
     * @return 结果
     */
    public int deleteYqDataTreeByID(@Param("ID") String ID, @Param("tableName") String tableName);
}
